//
//  Constant.h
//  JianChaRiBao
//
//  Created by yuzhou on 13-5-8.
//  Copyright (c) 2013年 wzyk. All rights reserved.
//

#define ITUNES_APP_KEY @"783329489"

#define USER_ID        @"140511"


#define LogImageName


// appid "33457" 医师报
#define NEWSPAPERID    @"33457"
//检测更新用的 （医师报）
#define IDENTIFY_KEY @"ec3dea6a73469b97884fc0ebfb3b34b3"
#define APP_KEY @"6b3d17f585692897a6c1c1a74c001121"


//  今日中国id: 30619
//  保险报id: 31912
//  计算机世界id: 30559

//tab按钮标识
enum {
    kTabIndex = 100,
    kTabShelf,
    kTabAnnouncement,
    kTabAccount
};

//导航按钮标识
enum {
    kNewsIndex = 0,
    kMagazineIndex,
    kListenIndex,
    kNovelIndex,
    kMainIndex
};
//登录
#define kLoginSuccess           @"logoinSuccess"
#define kLoginFail              @"logoinFail"
#define kLogout                 @"kLogout"
//注册
#define kRegisterSuccess        @"kRegisterSuccess"
#define kRegisterFail           @"kRegisterFail"

#define kConnectionEnable       @"kConnectionEnable"
#define kDownloadViaWWAN        @"kDownloadViaWWAN"

//听书
#define kNotifyGotListenInfo    @"kNotifyGotListenInfo"
#define kNotifyGotListenContent @"kNotifyGotListenContent"

#define FolderPath(item_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@",item_id]]
#define DownloadPath(item_id,subitem_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@/%@.mp3",item_id,subitem_id]]
#define TempPath(item_id,subitem_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@/%@.tmp",item_id,subitem_id]]

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define kAllDownload @"kAllDownload"

#define kUpdateProgressInShelfCell @"kUpdateProgressInShelfCell"
#define kOneDownloadFinished       @"kOneDownloadFinished"
#define kUpdateDownloadStatus      @"kUpdateDownloadStatus"

#define kAudioPlayerHistoryIndex   @"kAudioPlayerHistoryIndex"
#define kAudioPlayerMode           @"kAudioPlayerMode"
#define kPlayerStateDidChange      @"kPlayerStateDidChange"
#define kAudioProgressDidChange    @"kAudioProgressDidChange"
#define kPlayerIndexDidChange      @"kPlayerIndexDidChange"
#define kReadAuthorityFail         @"kReadAuthorityFail"
#define kCoverImage                @"kCoverImage"

#define KDownloading      @"KDownloading"
#define KDownloadComplete @"KDownloadComplete"


#define NovelInfo         @"NovelInfo"
#define MagaInfo          @"MagaInfo"
#define ListenCover       @"ListenCover"

#define Kmodify           @"Kmodify"
#define KmodifyTel        @"KmodifyTel"
enum kShelfButton
{
    kShelfButtonDownloaded = 201,
    kShelfButtonDownloading,
    kShelfButtonPlayrecord
};

#define PlayerBarHeight 42

#define EndTime         @"EndTime"
#define UUID [OpenUDID value]
//[[[UIDevice currentDevice] identifierForVendor] UUIDString]

